import request from '@/utils/request'

const api_name = "/api/order/orderInfo"
export default {
  // 发送验证码
  saveOrders(scheduleId,patientId) {
    return request({
      url: api_name+'/auth/submitOrder/'+scheduleId+"/"+patientId,
      method: 'post'
    })
  },
  // 查看订单信息
  getOrderInfo(id) {
    return request({
      url: api_name+'/auth/getOrders/'+id,
      method: 'get'
    })
  },
  // 订单列表
  getPageList(page,limit,vo) {
    return request({
      url: api_name+'/auth/'+page+"/"+limit,
      method: 'get',
      params: vo
    })
  },
  // 订单列表
  getStatusList() {
    return request({
      url: api_name+'/auth/getStatusList',
      method: 'get'
    })
  },
  // 取消订单
  cancelOrder(orderId) {
    return request({
      url: api_name+'/auth/cancelOrder/'+orderId,
      method: 'get'
    })
  }
}
